<% content_for :sitemap do %>
  <span class="current"><%= t("admin.sections") %></span>
<% end %>

<div class="toolbar">
  <%= link_to 'New Section', new_admin_section_path, class: "btn btn-default" %>
</div>

<table class="table table-bordered table-striped table-condensed">
  <tr class="head">
    <td class="first">#</td>
    <td>Name</td>
    <td>排序</td>
    <td></td>
  </tr>

<% @sections.each do |section| %>
  <tr>

    <td class="first"><%= section.id %></td>
    <td><%= section.name %></td>
    <td><%= section.sort %></td>
    <td><%= link_to '', edit_admin_section_path(section), class: "fa fa-pencil" %>
    <%= link_to '', edit_admin_section_path(section), 'data-confirm' => 'Are you sure?', method: :delete, class: "fa fa-trash" %></td>
  </tr>
<% end %>
</table>

